#ifndef MAINWINDOW_H
#define MAINWINDOW_H
//#include "page_login.h"
#include "stusql.h"
#include <QMainWindow>
#include<QPainter>
#include "dia_addstudent.h"
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
private slots:
    void on_btn_simulation_clicked();

    void on_btn_add_clicked();

    void on_btn_clear_clicked();

    void on_btn_del_clicked();



    void on_bt_update_clicked();

    void on_btn_search_clicked();

    void on_btn_prev_clicked();

    void on_btn_next_clicked();

    void on_btn_exit_clicked();

    void on_sb_page_valueChanged(int arg1);

private:
    Ui::MainWindow *ui;
   // Page_login m_dlgLogin;
    stuSql *m_ptrStuSql;
    QStringList m_lNames;
    Dia_AddStudent m_diaAddStu;
    //页数
    quint32 pageSum;
    void updateTable();
    //一共多页
    int sum;
    int flag;
};

#endif // MAINWINDOW_H
